package shopping;

public class product {
    //创建对象
    private String brand;
    private String type;
    private int price;
    private int num;
    //构造
    //空参构造

    public product() {
    }

    //实参构造

    public product(String brand, String type, int price, int num) {
        this.brand = brand;
        this.type = type;
        this.price = price;
        this.num = num;
    }

    //get,set方法

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
